﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator_WebSite/MasterPage.master" AutoEventWireup="true" CodeBehind="AddEditNationalTeam.aspx.cs" Inherits="FootBallMatchProject.Piography.Admin.AddEditNationalTeam" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style2" dir="rtl" __designer:mapid="4a3">
        <tr __designer:mapid="4ab">
            <td style="width: 25%" __designer:mapid="4ac">
                <asp:Label ID="Label7" runat="server" Text="شعار المنتخب"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4ae">
                <asp:FileUpload ID="UploadLogo" runat="server" />
            </td>
            <td style="width: 25%" __designer:mapid="4b1">
                <asp:Button ID="btnUploadLogo" runat="server" Text="تحميل" 
                    ValidationGroup="2" onclick="btnUploadLogo_Click" />
            </td>
            <td style="width: 25%" __designer:mapid="4b3">
                <asp:Image ID="Logo" runat="server" Visible="False" />
            </td>
            <td __designer:mapid="4b6">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4ab">
            <td style="width: 25%" __designer:mapid="4ac">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4ae">
                <asp:HiddenField ID="hfLogo" runat="server" />
            </td>
            <td style="width: 25%" __designer:mapid="4b1">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4b3">
                &nbsp;</td>
            <td __designer:mapid="4b6">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4ab">
            <td style="width: 25%" __designer:mapid="4ac">
                <asp:Label ID="lblNationalTeam" runat="server" Text="المنتخب"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4ae">
                <asp:TextBox ID="txtNationalTeam" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNationalTeam" runat="server" 
                            ControlToValidate="txtNationalTeam" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 25%" __designer:mapid="4b1">
                <asp:Label ID="Label1" runat="server" Text="تاريخ التأسيس"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4b3">
                <asp:TextBox ID="dtDateOfFoundation" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDateOfFoundation" runat="server" 
                            ControlToValidate="dtDateOfFoundation" ErrorMessage="*" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td __designer:mapid="4b6">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4b7">
            <td style="width: 25%" __designer:mapid="4b8">
                <asp:Label ID="Label2" runat="server" Text="المدرب"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4ba">
                <asp:DropDownList ID="cmbCoaches" runat="server">
                </asp:DropDownList>
            </td>
            <td style="width: 25%" __designer:mapid="4bc">
                <asp:Label ID="Label3" runat="server" Text="الموقع الرسمي"></asp:Label>
            </td>
            <td dir="rtl" style="width: 25%" __designer:mapid="4be">
                <asp:TextBox ID="txtWebSite" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="rxvWebSite" runat="server" 
                            ControlToValidate="txtWebSite" ErrorMessage="*" ForeColor="Red" 
                            ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
            </td>
            <td __designer:mapid="4c1">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4c2">
            <td style="width: 25%" __designer:mapid="4c3">
                <asp:Label ID="Label5" runat="server" Text="الملعب"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4c5">
                <asp:DropDownList ID="cmbStadiums" runat="server">
                </asp:DropDownList>
            </td>
            <td style="width: 25%" __designer:mapid="4c7">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4c9">
                &nbsp;</td>
            <td __designer:mapid="4cb">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4cc">
            <td style="width: 25%" __designer:mapid="4cd">
                <asp:Label ID="Label6" runat="server" Text="معلومات عامة"></asp:Label>
            </td>
            <td colspan="4" __designer:mapid="4cf">
                <asp:TextBox ID="txtGeneralInformation" runat="server" TextMode="MultiLine" 
                            Width="100%"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="4d1">
            <td style="width: 25%" __designer:mapid="4d2">
                <asp:Label ID="Label8" runat="server" Text="لباس الفريق"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4d4">
                <asp:FileUpload ID="UploadColor" runat="server" />
            </td>
            <td style="width: 25%" __designer:mapid="4d6">
                <asp:Button ID="btnUploadColorImage" runat="server" Text="تحميل" 
                    ValidationGroup="2" onclick="btnUploadColorImage_Click" />
            </td>
            <td style="width: 25%" __designer:mapid="4d8">
                <asp:Image ID="Color" runat="server" Visible="False" />
            </td>
            <td __designer:mapid="4d9">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4d1">
            <td style="width: 25%" __designer:mapid="4d2">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4d4">
                <asp:HiddenField ID="hfColorImage" runat="server" />
            </td>
            <td style="width: 25%" __designer:mapid="4d6">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4d8">
                        &nbsp;</td>
            <td __designer:mapid="4d9">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4da">
            <td style="width: 25%" __designer:mapid="4db">
                <asp:Label ID="Label9" runat="server" Text="الفريق"></asp:Label>
            </td>
            <td style="width: 25%" __designer:mapid="4dd">
                <asp:FileUpload ID="UploadNationalTeamImage" runat="server" />
            </td>
            <td style="width: 25%" __designer:mapid="4df">
                <asp:Button ID="btnUploadNationalTeamImage" runat="server" Text="تحميل" 
                    ValidationGroup="2" onclick="btnUploadNationalTeamImage_Click" />
            </td>
            <td style="width: 25%" __designer:mapid="4e1">
                <asp:Image ID="NationalTeamImage" runat="server" Visible="False" />
            </td>
            <td __designer:mapid="4e2">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4da">
            <td style="width: 25%" __designer:mapid="4db">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4dd">
                <asp:HiddenField ID="hfNationalTeamImage" runat="server" />
            </td>
            <td style="width: 25%" __designer:mapid="4df">
                &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4e1">
                        &nbsp;</td>
            <td __designer:mapid="4e2">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4e3">
            <td style="width: 25%" __designer:mapid="4e4">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4e5">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4e6">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4e7">
                        &nbsp;</td>
            <td __designer:mapid="4e8">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4e9">
            <td __designer:mapid="4ea" colspan="5">
                        <asp:Panel ID="pnlStatistics" runat="server" BorderWidth="0px" Visible="false" 
                            Width="100%">
                        <table width="100%">
                            <tr>
                                <td style="width: 25%">
                                    <asp:Label ID="Label10" runat="server" Text="احصائيات الفريق"></asp:Label>
                                </td>
                                <td>
                                    <table style="width: 100%">
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label14" runat="server" Text="السنة"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtYear" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label11" runat="server" Text="فوز"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtWin" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label12" runat="server" Text="تعادل"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtDraw" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label13" runat="server" Text="خسارة"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtLose" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="width: 25%">
                                    <asp:ImageButton ID="imgbtnAdd" runat="server" Height="15px" 
                                        ImageUrl="~/images/ADD.jpg" onclick="imgbtnAdd_Click" Width="15px" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <asp:GridView ID="gvStatistics" runat="server" AutoGenerateColumns="False" 
                                                onrowcancelingedit="gvStatistics_RowCancelingEdit" 
                                                onrowdeleting="gvStatistics_RowDeleting" onrowediting="gvStatistics_RowEditing" 
                                                onrowupdating="gvStatistics_RowUpdating" Width="100%">
                                                <Columns>
                                                    <asp:TemplateField ShowHeader="False">
                                                        <EditItemTemplate>
                                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update" 
                                                                Text="تحديث"></asp:LinkButton>
                                                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                                                CommandName="Cancel" Text="الغاء"></asp:LinkButton>
                                                        </EditItemTemplate>
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label18" runat="server" Text="الاحصائية"></asp:Label>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" 
                                                                CommandName="Edit" Text="تعديل"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWin" runat="server" Text='<%# Bind("Win") %>' Width="100%"></asp:TextBox>
                                                            <br />
                                                            <asp:LinkButton ID="lnkID" runat="server" Text='<%# Bind("ID") %>' 
                                                                Visible="False"></asp:LinkButton>
                                                        </EditItemTemplate>
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label19" runat="server" Text="فوز"></asp:Label>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label15" runat="server" Text='<%# Bind("Win") %>'></asp:Label>
                                                            <asp:LinkButton ID="lnkID0" runat="server" Text='<%# Bind("ID") %>' 
                                                                Visible="False"></asp:LinkButton>
                                                            <br />
                                                        </ItemTemplate>
                                                        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtDraw" runat="server" Text='<%# Bind("Draw") %>' 
                                                                Width="100%"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label20" runat="server" Text="تعادل"></asp:Label>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label16" runat="server" Text='<%# Bind("Draw") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtLose" runat="server" Text='<%# Bind("Lose") %>' 
                                                                Width="100%"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label21" runat="server" Text="خسارة"></asp:Label>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label17" runat="server" Text='<%# Bind("Lose") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <EditItemTemplate>
                                                            <asp:Label ID="lblYear" runat="server" Text='<%# Bind("Year") %>'></asp:Label>
                                                        </EditItemTemplate>
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label24" runat="server" Text="السنة"></asp:Label>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label22" runat="server" Text='<%# Bind("Year") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField ShowHeader="False">
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label25" runat="server" Text="حذف"></asp:Label>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LinkButton10" runat="server" CausesValidation="False" 
                                                                CommandArgument='<%# Eval("ID") %>' CommandName="Delete" Text="حذف"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                        </asp:Panel>
            </td>
        </tr>
        <tr __designer:mapid="4e9">
            <td __designer:mapid="4ea" colspan="2">
                <table class="style2" __designer:mapid="4ec">
                    <tr __designer:mapid="4ed">
                        <td __designer:mapid="4ee">
                            <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="حفظ" />
                        </td>
                        <td __designer:mapid="4f0">
                            <asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" Text="مسح" />
                        </td>
                        <td __designer:mapid="4f2">
                            <asp:Button ID="btnClose" runat="server" onclick="btnClose_Click" 
                                        Text="اغلاق" ValidationGroup="2" />
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 25%" __designer:mapid="4f4">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4f5">
                        &nbsp;</td>
            <td __designer:mapid="4f6">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4f7">
            <td style="width: 25%" __designer:mapid="4f8">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4f9">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4fa">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4fb">
                        &nbsp;</td>
            <td __designer:mapid="4fc">
                        &nbsp;</td>
        </tr>
        <tr __designer:mapid="4fd">
            <td style="width: 25%" __designer:mapid="4fe">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="4ff">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="500">
                        &nbsp;</td>
            <td style="width: 25%" __designer:mapid="501">
                        &nbsp;</td>
            <td __designer:mapid="502">
                        &nbsp;</td>
        </tr>
    </table>
</asp:Content>
